﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Electronic_work_order.Model;
namespace Electronic_work_order.Interfacess.OA_Agency
{
   public interface Interfacess_Agency
    {
        //查询所有信息放到代办中
        IEnumerable<object> Agencys();

        //根据流水号，申请流程名称，申请状态查询
        IEnumerable<object> GetCcommission(string Agency_ID, int Aid, int StateID);

        //申请流程名称，申请状态查询
        IEnumerable<object> GetCcommission_AllID(int Aid, int StateID);
        IEnumerable<object> GetCcommission_StateID(int StateID);
        IEnumerable<object> GetCcommission_Aid(int Aid);
        IEnumerable<object> GetCcommission_Agency_ID(string Agency_ID);
        
        // //查询主管级别的数据
        IEnumerable<object> Agency(int State,int PositoionID);

        //查询所有结办信息放到代办中
        IEnumerable<object> Agency_JieBan();
        //添加代办信息
        int AddCommission(commission commission);

        //若添加申请单成功的同时添加代办表时失败要根据流水号删除申请表
        int Delete(int Agency_ID);

        int Update(string Agency_ID, int Process_State_ID, string AYiJian);

        //根据职位查名称
        object GetPosition_UserName(int PositionID);

        //查询经理级别的数据
        IEnumerable<object> Agency_manager(int State, int PositoionID);

        //流程详情查询
        IEnumerable<object> getComXQ(int Aid ,string AgencyID);
    
        }
}
